<template>
  <view class="page">
    <view class="home-two-box">
      <view class="home-two-logo"></view>
      <view class="home-two-title"> </view>
      <view class="container-user">
        <view class="content-profile">
          <img src="https://file.battleofballs.com/1459939565_1577280167_4182374.jpeg" />
        </view>
        <view class="content-userInfo">
          <view class="userName"> 张三 </view>
          <view class="userText">邀请你为TA助力！</view>
        </view>
      </view>

      <view class="container-progress">
        <view class="progress-num-content">
          <view class="progress-num">10</view>
          <view class="progress-num">50</view>
          <view class="progress-num">90</view>
          <view class="progress-num">300</view>
        </view>
        <view class="progress-content">
          <view class="progress-bar" style="width: 20px"></view>
        </view>
      </view>

      <view class="container-award">
        <view class="content-award">
          <view class="box-award">
            <img
              src="https://cdn-ingame.superpopgames.com/act/redenvelopetwo/static/img/icon/daoju_4612.png"
            />
            <view class="award-num">*100</view>
          </view>
        </view>
        <view class="content-award">
          <view class="box-award">
            <img
              src="https://cdn-ingame.superpopgames.com/act/redenvelopetwo/static/img/icon/daoju_4612.png"
            />
            <view class="award-num">*500</view>
          </view>
        </view>
        <view class="content-award">
          <view class="box-award">
            <img
              src="https://cdn-ingame.superpopgames.com/act/redenvelopetwo/static/img/icon/daoju_4612.png"
            />
            <view class="award-num">*900</view>
          </view>
        </view>
        <view class="content-award">
          <view class="box-award">
            <img
              src="https://cdn-ingame.superpopgames.com/act/redenvelopetwo/static/img/icon/daoju_4612.png"
            />
            <view class="award-num">*3000</view>
          </view>
        </view>
      </view>

      <view class="help-text">已有12人为其助力 </view>

      <view class="go-link__wrap">
        <view class="btn heartBeat"> </view>
      </view>

      <view class="user-content">
        <view class="user-box"> </view>
      </view>
    </view>
  </view>
</template>

<script lang="ts">
export default {
  name: 'hometwo',
  components: {},
  data() {
    return {}
  },
  mounted() {},
  methods: {
    guize1() {}
  }
}
</script>

<style scoped>
.page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.home-two-box {
  display: flex;
  overflow: hidden;
  margin: 0 auto 50px;
  position: relative;
  width: 100%;
  max-width: 450px;
  background-image: url(https://cdn-ingame.superpopgames.com/act/redenvelopetwo/img/bg.37378ecf.jpg);
  background-size: 100% auto;
  background-position: 0 -38px;
  padding-top: 56px;
  color: #fff;
  flex-direction: column;
}

.home-two-logo {
  margin: 0 auto;
  width: 100px;
  height: 30px;
  background-image: url(https://cdn-ingame.superpopgames.com/act/redenvelopetwo/img/logo.aa66f420.png);
  background-size: 100% auto;
  margin-bottom: 10px;
  justify-content: center;
}

.home-two-title {
  margin: 0 auto;
  width: 328px;
  height: 93px;
  justify-content: center;
  background-image: url(https://cdn-ingame.superpopgames.com/act/redenvelopetwo/img/title.cfe0a558.png);
  background-size: 100% auto;
}

.container-user {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 76px;
}
.content-profile {
  position: relative;
  margin-right: -24px;
  width: 84px;
  height: 84px;
  background-image: url(https://cdn-ingame.superpopgames.com/act/redenvelopetwo/img/user-profile.173afb90.png);
  background-size: 100% auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.content-profile img {
  border-radius: 50%;
  width: 70%;
  height: 71%;
}
.content-userInfo {
  margin-left: -36px;
  padding-left: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 48px;
  background-image: url(https://cdn-ingame.superpopgames.com/act/redenvelopetwo/img/user-name-power.7dd39be1.png);
  background-size: 100% auto;
}
.content-userInfo .userName {
  font-weight: 600;
  font-size: 15px;
  color: #fdf7e6;
}
.content-userInfo .userText {
  font-weight: 600;
  font-size: 15px;
  color: #ffe486;
}

/** 奖品块 */
.container-progress {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.progress-num-content {
  position: relative;
  margin: 0 auto 5px;
  width: 286px;
  height: 20px;
  font-size: 18px;
  color: #fff;
  text-shadow:
    1px 0 #27170c,
    1px 1px #27170c,
    1px -1px #27170c,
    0 1px #27170c,
    0 -1px #27170c,
    -1px 0 #27170c,
    1px 0 #27170c;
}
.progress-num {
  position: absolute;
  font-weight: 600;
}
.progress-num:first-child {
  left: 50px;
}
.progress-num:nth-child(2) {
  left: 120px;
}
.progress-num:nth-child(3) {
  left: 193px;
}
.progress-num:nth-child(4) {
  left: 260px;
}
.progress-content {
  position: relative;
  margin: 0 auto;
  width: 286px;
  height: 22px;
  background-image: url();
  background-size: 100% auto;
  margin-bottom: 0.1rem;
}
.container-award {
  position: relative;
  height: 81px;
  margin-bottom: 10px;
}
.content-award {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
}
.content-award:first-child {
  left: 67px;
}
.content-award:nth-child(2) {
  left: 138px;
}
.content-award:nth-child(3) {
  left: 210px;
}
.content-award:nth-child(4) {
  left: 285px;
}
.box-award {
  position: relative;
  width: 70px;
  height: 80px;
  background-image: url();
  background-size: 100% auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.box-award img {
  margin-top: 10px;
  max-width: 50px;
  max-height: 50px;
  height: auto;
  width: auto;
}
.award-num {
  position: absolute;
  bottom: 8px;
  right: 22px;
  font-size: 10px;
  text-shadow:
    1px 0 #eb365e,
    1px 1px #eb365e,
    1px -1px #eb365e,
    0 1px #eb365e,
    0 -1px #eb365e,
    -1px 0 #eb365e,
    1px 0 #eb365e;
}

.help-text {
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #fff9cf;
}

.btn {
  margin: 25px auto 34px;
  width: 292px;
  height: 34px;
  background-image: url();
  background-size: 100% auto;
  display: flex;
}
.heartBeat {
  animation-name: heartBeat;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.user-content {
  margin: 0 auto;
  padding-top: 33px;
  width: 355px;
  height: 250px;
  background-image: url(https://cdn-ingame.superpopgames.com/act/redenvelopetwo/img/user_content.b17427f0.png);
  background-size: 100% auto;
}
.user-box {
  margin: 26px auto 0;
  width: 255px;
  height: 240px;
  overflow: hidden;
}
</style>
